<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>select</title>
  <style>
    [v-cloak]{display: none}
  </style>
</head>
<body>
<div id="app" v-cloak>
   <select v-model="a" multiple>
     <option value="" disabled>请选择</option> <!-- 如果value属性不写默认值，请选择这一项要加disabled -->
     <option value="1">你好</option>
     <option value="2">不好</option>
     <option value="3">我好</option>
   </select>
  {{a}}
    <p></p>
  <input type="radio" v-model="gender" value="男">男
  <input type="radio" v-model="gender" value="女">女
  {{gender}}
</div>

</body>
<script src="../node_modules/vue/dist/vue.js"></script>
<script>
    //1.使用变量时需要初始化，否则新加的属性不会导致页面刷新
   let vm =  new Vue({
        el: '#app',
            data:{
               a:[],
                gender:''
            }
    })

</script>
</html>
